home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 34.zip / BS1 part 34 / FredFish PD 316.adf / IntuiSup / Docs / User.man < prev    next >
Text File  |  1990-02-06  |  19KB  |  661 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.                 IntuiSup Library, Release 1.15
  9.                      User Manual
  10.  
  11.                        Coded by
  12.                  Gauthier H. Groult,
  13.                    contributions by
  14.                  Jean-Michel Forgeas
  15.  
  16.                     ~ ~ ~
  17.  
  18.  
  19.  
  20.            A runtime  software extension package  to the Commodore
  21.            Amiga's operating system and graphical environment.
  22.  
  23.  
  24.  
  25.                   December 18, 1989
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.       Welcome to IntuiSup
  75.  
  76.            This document contains the end-user oriented information for
  77.            the  special objects  in the  iSup library  directly dealing
  78.            with the user interface.
  79.  
  80.            Not all objects    are documented. An object is not documented
  81.            herein if it's use can be intuitively guessed from it's dis-
  82.            play, i.e. if it  does not have special shortcuts or actions
  83.            that one might  not guess at first glance. Undisplayable ob-
  84.            jects an other low level features of the library not covered
  85.            in this manual.
  86.  
  87.            Please report all bugs and send your comments or suggestions
  88.            to:
  89.  
  90.             Groult Gauthier
  91.             33, Blvd Saint Denis
  92.             92400 Courbevoie, France, Europe
  93.             Tel: (1) 47 89 09 54
  94.             EMail: groult@germinal.ibp.fr
  95.  
  96.            Enjoy.
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.       IntuiSup r1.15        Page 2            User Manual
  131.  
  132.  
  133.  
  134.  
  135.       Requesters                    File Requester v1.3
  136.  
  137.  
  138.  
  139.  
  140.  
  141.       THE FILE REQUESTER
  142.  
  143.            The  file requester  is    designed to  let  you move  quickly
  144.            around your  filesystem and select a file  as easily as pos-
  145.            sible. To enhance speed    and ease of use, it features inter-
  146.            nal buffering  of the last scanned  directory, key selection
  147.            and keyboard  shortcuts, file name  completion, visual feed-
  148.            back and fast display update.
  149.  
  150.            It  has two  different  modes: the  first  one enables  file
  151.            selection, the  second allows for  directory selection only.
  152.            In directory mode,  the File and Pattern strings gadgets are
  153.            ghosted.
  154.  
  155.  
  156.       DISPLAY AND DISPLAY GADGETS
  157.  
  158.            The display window is  made of several lines which are actu-
  159.            ally gadgets. You can select a name appearing on the display
  160.            by pointing  at it and clicking with  the left mouse button,
  161.            and validate it by double-clicking. If it is a file name, it
  162.            is  copied into    the file  string gadget, while    if it  is a
  163.            directory name, it is scanned, the path string gadget is up-
  164.            dated and the new list of files is displayed.
  165.  
  166.            The display  can be scrolled vertically.  The gadgets on its
  167.            left let you position the list to your need:
  168.  
  169.            Up and down arrow gadgets
  170.             These have two  functions: if you click once, they will
  171.             move the display up or  down one line. If you keep them
  172.             selected  for a  brief delay,  the display    will scroll
  173.             quickly  in the  chosen direction  until the  gadget is
  174.             released.
  175.  
  176.            The proportional gadget
  177.             This gadget  shows you  the amount of  information cur-
  178.             rently visible  on the display. You  can slide the knob
  179.             to    position the  display freely. If  you click  in the
  180.             gadget area  but outside the knob, you  will move up or
  181.             down one page exactly.
  182.  
  183.            The top and bottom of list gadgets
  184.             These are located over the arrows and under the propor-
  185.             tional gadget. They  reset the display to the beginning
  186.             or the end of the file  list. Nice if you first mean to
  187.             catch "c:XIcon"  and change  your mind for  "c:Ask" :-)
  188.             'do that every day, ah?
  189.  
  190.  
  191.       FUNCTION GADGETS
  192.  
  193.  
  194.  
  195.  
  196.       IntuiSup r1.15        Page 3            User Manual
  197.  
  198.  
  199.  
  200.  
  201.       Requesters                    File Requester v1.3
  202.  
  203.  
  204.  
  205.            The requester has  height function gadgets. Their use is the
  206.            following:
  207.  
  208.            The Path string gadget
  209.             This is  the upper string gadget.  It contains the cur-
  210.             rent path, i.e. the exact and complete reference of the
  211.             directory listed on  the display. Path names always use
  212.             a "volume:dir/.../dir"  pattern, and names  of assigned
  213.             volumes are  extended to their full  reference. You can
  214.             enter text in this    gadget to jump to a specific direc-
  215.             tory.  Note that entering  a full file name in the path
  216.             gadget  is allowed,  the  file will  be recognized    and
  217.             splitted into the file string gadget.
  218.  
  219.             This gadget can be    activated with the Cursor Up key on
  220.             the keyboard.
  221.  
  222.            The File string gadget
  223.             This is  the lower string gadget. It  holds the name of
  224.             the current selected file, if one. You can enter a name
  225.             in this gadget to select a file, although you will usu-
  226.             ally find it easier  to click in the display area. Note
  227.             that pressing Return  in this gadget will automatically
  228.             validate the name  and is equivalent to clicking on the
  229.             Ok gadget, if the buffer is not empty.
  230.  
  231.             This gadget can  be disabled if the application program
  232.             asked for  a directory  only requester. If    enabled, it
  233.             can  be  activated    with the  Cursor  Down    key on    the
  234.             keyboard.
  235.  
  236.            The Parent gadget
  237.             Selecting  this   gadget  causes  the   last  directory
  238.             reference to be removed from the current path and moves
  239.             up    one  level before  refreshing  the  display. It  is
  240.             equivalent to remove  by hand the last drawer reference
  241.             in the Path string gadget.
  242.  
  243.             This gadget  can be activated with    the Cursor Left key
  244.             on the keyboard.
  245.  
  246.            The Wildcard/Pattern string gadget.
  247.             This gadget is located in the file string gadget's box,
  248.             right under the  Parent gadget. It will usually contain
  249.             a "*"  character. It contains the  wildcard pattern ap-
  250.             plied  to the  display: each time  you press  Return in
  251.             this  gadget, the  current directory  is  rescanned and
  252.             only the files  matching the new pattern are displayed.
  253.             The  pattern  affects only    file  names, not  directory
  254.             names.
  255.  
  256.             The   pattern  may    contain   the  normal    Unix  shell
  257.             metacharacters for pattern matching.  The '*' character
  258.             matches any string, including the null string.  The '?'
  259.  
  260.  
  261.  
  262.       IntuiSup r1.15        Page 4            User Manual
  263.  
  264.  
  265.  
  266.  
  267.       Requesters                    File Requester v1.3
  268.  
  269.  
  270.  
  271.             character  matches    any single  character.     A list  of
  272.             characters enclosed in  '[' and ']' matches any charac-
  273.             ter in  the list. Within a    list, the rules implemented
  274.             here are:
  275.  
  276.              The backslash    character may be used  to quote any
  277.              special character, i.e.  "\]" and "\-" anywhere in
  278.              list, or "\!" at start of list.
  279.  
  280.              The sequence  \nnn becomes the  character given by
  281.              nnn (in octal).
  282.  
  283.              Any non-escaped ']' marks the end of list.
  284.  
  285.              A  list beginning with  the special  character '!'
  286.              matches  any  character  NOT  in  list.   The    '!'
  287.              character  is    only special  if  it  is the  first
  288.              character in the list.
  289.  
  290.              A '-' character between two letters will match any
  291.              characters   aphabetically  between   them:  [a-d]
  292.              matches a, b, c and d.
  293.  
  294.             For instance, the  file name "hello" will not match the
  295.             pattern  "*.c", but the  file name  "awyxbawxyc.c" will
  296.             match the  pattern "a*b[!wxy]*.c".  As  for more useful
  297.             examples, the pattern  "*" displays all the files, "a*"
  298.             will show only those beginning with "a", and "*.c" only
  299.             those ending  with ".c".  "*.[ac]" will  show all files
  300.             ending  with ".c"  and with  ".a"  only.  Note  that an
  301.             empty pattern will macth no files.
  302.  
  303.             This gadget can  be disabled if the application program
  304.             asked for  a directory  only requester. If    enabled, it
  305.             can be activated with the Cursor Right key.
  306.  
  307.            The Scan and Stop gadgets
  308.             These  two gadgets    let you  interrupt and    restart the
  309.             scanning of  a directory. The Scan    gadget restarts the
  310.             building of  the list from scratch,  and not from where
  311.             it stopped.  Note that you    can stop a  scan by several
  312.             other ways than the Stop gadget: a keystroke or a mouse
  313.             button click for  instance. The Scan gadget can also be
  314.             useful if you  need to force display refreshing: if for
  315.             some reason all  of the files couldn't be displayed, or
  316.             if a nasty virus mangled the display, hit Scan to retry
  317.             a better listing.
  318.  
  319.             When the requester    is scanning, the Stop gadget can be
  320.             simulated by pressing the Right mouse button.
  321.  
  322.            The Ok gadget
  323.             This gadget validates  the selected file name and sends
  324.             it to the application program which called the File Re-
  325.  
  326.  
  327.  
  328.       IntuiSup r1.15        Page 5            User Manual
  329.  
  330.  
  331.  
  332.  
  333.       Requesters                    File Requester v1.3
  334.  
  335.  
  336.  
  337.             quester. Note that it  is not required that a file name
  338.             be present in the File string gadget to use select Ok.
  339.  
  340.             This  gadget can  be activated  by pressing  the Return
  341.             key,  by pressing  return  in the  File string  gadget,
  342.             through file name completion (see below) or by a double
  343.             click on  the display if  these are allowed  by the ap-
  344.             plication.
  345.  
  346.            The Cancel gadget
  347.             This gadget simply    aborts the requester. It can be ac-
  348.             tivated by pressing the Esc key.
  349.  
  350.            The Drag gadget
  351.             If the  application program which  opened the requester
  352.             allowed  it, you  might be able  to drag  the requester
  353.             window by  grabbing it's title bar.  This option may or
  354.             may not be accessible to you, depending on the applica-
  355.             tion settings.
  356.  
  357.  
  358.       MOUSE BUTTONS
  359.  
  360.            The Left mouse button is used to select a display line or to
  361.            click on a gadget.
  362.  
  363.            The Right  mouse button has two    functions. If the requester
  364.            is scanning, it will just stop it. When the requester is not
  365.            scanning, it will switch to the next displayable list.
  366.  
  367.            The file requester  manages three lists: the first holds the
  368.            files and directories for the current path, the second holds
  369.            the  volumes  and  assigns  names,  the third  contains    the
  370.            devices and assigns  names. You switch between them with the
  371.            Right mouse button.  Assign names appear after the volume or
  372.            device names in the related lists, just like directory names
  373.            in the first list.  Assign names corresponding to a file and
  374.            not to a directory  will be correctly splitted into the File
  375.            string gadget.
  376.  
  377.  
  378.       KEYBOARD SHORTCUTS
  379.  
  380.            The following  keys can be used as  shortcuts when no string
  381.            gadget is selected:
  382.  
  383.            Cursor Up
  384.             Moves the current selection to the previous file in the
  385.             list, if one, and resets the display. Useful in conjuc-
  386.             tion with key selection.
  387.  
  388.            Cursor Down
  389.             Moves the  current selection to the  next file, or pick
  390.             the  first    file  in  the  list  if  none  was  already
  391.  
  392.  
  393.  
  394.       IntuiSup r1.15        Page 6            User Manual
  395.  
  396.  
  397.  
  398.  
  399.       Requesters                    File Requester v1.3
  400.  
  401.  
  402.  
  403.             selected, and resets the display.
  404.  
  405.            Shift Cursor Up
  406.             Activates the Path string gadget.
  407.  
  408.            Shift Cursor Down
  409.             Activates the  File string    gadget if the  requester is
  410.             not a directory requester.
  411.  
  412.            Cursor Right
  413.             Activates the  wildcard string gadget  if the requester
  414.             is not a directory requester.
  415.  
  416.            Cursor Left
  417.             Same effect  as clicking the Parent  gadget or removing
  418.             the last directory reference in the Path string gadget:
  419.             moves up one level in the volume's tree. If you are al-
  420.             ready in the root, nothing happens.
  421.  
  422.            Right Alt with Right Amiga
  423.             Simulates a Right mouse button event, and thus switches
  424.             between the file, volume and device lists.
  425.  
  426.            Return
  427.             Validates the  current file  name, same as    clicking on
  428.             Ok. Also file name completion if key selection was used
  429.             - see below.
  430.  
  431.            Esc
  432.             Cancels the file requester, same as the Cancel gadget.
  433.  
  434.            Backspace
  435.             Back space one  character in the key selection buffer -
  436.             see below.
  437.  
  438.  
  439.       KEY SELECTION & FILE NAME COMPLETION
  440.  
  441.            When  no  string gadget    is  selected,  every keystroke    not
  442.            recognized as  one of the preceding  shortcuts is considered
  443.            for key selection.
  444.  
  445.            If, by  appending the corresponding character  to the selec-
  446.            tion buffer - which  is cleared at every scan, the requester
  447.            can find a name    in the current list whose beginning matches
  448.            the selection buffer,  then this name is selected and parti-
  449.            ally  highlighted. This    means that  you can  key in  a name
  450.            while no string gadget is selected, and that name will high-
  451.            light accordingly. If you  enter a character which is not in
  452.            the name, it will be ignored. If you enter a character which
  453.            will make the  buffer match another name, the selection will
  454.            switch to  that name. This is a little  bit difficult to ex-
  455.            plain clearly,  but actually the file  requester will always
  456.            find the name matching best what you have entered.
  457.  
  458.  
  459.  
  460.       IntuiSup r1.15        Page 7            User Manual
  461.  
  462.  
  463.  
  464.  
  465.       Requesters                    File Requester v1.3
  466.  
  467.  
  468.  
  469.  
  470.            Moreover, the  display is moved if  needed during key selec-
  471.            tion so that the best matching name is printed in the middle
  472.            of window,  if possible.  Thus you  can at glance  check the
  473.            close names and read what you want to key in next.
  474.  
  475.            Key selection is not case sensitive. Entering upper or lower
  476.            case characters makes no difference.
  477.  
  478.            You can back up in your selection by pressing BackSpace.
  479.  
  480.            File name  completion is achieved simply  by pressing return
  481.            when a  name is partially selected. If the  name is a direc-
  482.            tory name, it is scanned. If  it is a file, it is stuffed in
  483.            the File string gadget and validated.
  484.  
  485.  
  486.       NOTES
  487.  
  488.            User events have  a higher priority than directory scanning:
  489.            they will  always be processed,    even when the  requester is
  490.            busy reading  a file list.  This means that you    can use any
  491.            function at any moment, you never have to wait.
  492.  
  493.            The  volume list  are instantly rebuild    when you  press the
  494.            right mouse button. Thus, if you Mount a new drive or Assign
  495.            a name, it will be displayed the next time you hit the right
  496.            mouse button.
  497.  
  498.            If, when the  application first displays the File Requester,
  499.            the current  directory is  not mounted, the  mounted volumes
  500.            list is displayed instead of a file list.
  501.  
  502.  
  503.  
  504.  
  505.  
  506.  
  507.  
  508.  
  509.  
  510.  
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.  
  526.       IntuiSup r1.15        Page 8            User Manual
  527.  
  528.  
  529.  
  530.  
  531.       Text Editing                         Text Areas
  532.  
  533.  
  534.  
  535.  
  536.  
  537.       THE TEXT AREAS
  538.  
  539.            Text Areas behave like string gadgets, but enable two-dimen-
  540.            sional screen  oriented text editing instead  of single line
  541.            edition. Applications  can open    Text Areas on  windows, and
  542.            may  eventually open  several of them  on single  window, in
  543.            which case  we will speak of an    "edition mask".  Text Areas
  544.            can be  recognized when activated -  usually by pointing end
  545.            clicking - by their one pixel vertical blinking cursor.
  546.  
  547.  
  548.       EDITION
  549.  
  550.            Text  editing whith  a  text area  is very  straightforward.
  551.            Insertion and deletion of characters can happen at any posi-
  552.            tion in    the text.  Insertion always overwrites    any pre-en-
  553.            tered character at  the same position. The text is formatted
  554.            into paragraphs wich  are re-computed in real time while you
  555.            key-in, and thus the display is always up to date.
  556.  
  557.            Depending on the application settings, the text may be left,
  558.            right or center    justified. You may or may not interactively
  559.            change these parameters, depending again on the application.
  560.            In the same way, an  auto-fill option - which will not allow
  561.            words to be  cut on the right edge of  the area - may or may
  562.            not be  enabled. Last, the  area may filter  some characters
  563.            and for instance allow only for numbers to be keyed in.
  564.  
  565.            The maximum  number of lines in    an area can also  be set by
  566.            the application,  and can in  some cases be  unlimited - the
  567.            actual maximum limit is 65536 lines. If you attempt to enter
  568.            more text  than what is permitted, the  screen will flash. A
  569.            flash will  also occur if  inserting was made  unpossible by
  570.            lack of    memory. In any case, a display    beep means that you
  571.            cannot enter more text without deleting some or freeing some
  572.            memory first.
  573.  
  574.  
  575.       CURSOR MOVEMENT
  576.  
  577.            The following actions  control the cursor movement and posi-
  578.            tion on an activated Text Area:
  579.  
  580.            Cursor Right, Cursor Left
  581.             This will  move by    one character  to the right  or the
  582.             left respectively, scrolling the area if necessary.
  583.  
  584.            Cursor Up, Cursor Down
  585.             This moves the cursor one line up or down respectively,
  586.             scrolling the  area as needed.  The horizontal position
  587.             of the cursor  is preserved when possible.    When on the
  588.             top or bottom line of an area, this may move the cursor
  589.  
  590.  
  591.  
  592.       IntuiSup r1.15        Page 9            User Manual
  593.  
  594.  
  595.  
  596.  
  597.       Text Editing                         Text Areas
  598.  
  599.  
  600.  
  601.             to the previous or next area of a mask. Exact behaviour
  602.             in this  case is  determined by the  application's set-
  603.             tings.
  604.  
  605.            Shift-Cursor Right, Shift-Cursor Left
  606.             This moves    the cursor to  the end or  the beginning of
  607.             the current line respectively.
  608.  
  609.            Shift-Cursor Up, Shift-Cursor Down
  610.             This moves    the display and  the cursor one  page up or
  611.             down respectively, without changing the cursor position
  612.             on the  display when possible.  When moving up  or down
  613.             one page  is not possible - you are  already at the top
  614.             or    bottom    of  the  area,    nothing happens,  and  par-
  615.             ticularely you will  not move to the next/previous area
  616.             in    the mask  -  if any.  Because  the cursor  position
  617.             doesn't change, you can quickly browse through the text
  618.             and come back for further editing.
  619.  
  620.            Ctrl-Cursor Up, Ctrl-Cursor Down
  621.             Pressed once: moves the display to the beginning or end
  622.             of the  text without changing the  cursor display posi-
  623.             tion. This allows for  a quick look at the opposite end
  624.             of    the text  and come back.  Pressed twice:  moves the
  625.             cursor to  the first or  last line of  the text respec-
  626.             tively  without changing  the horizontal  position when
  627.             possible.
  628.  
  629.            Alt-Cursor Up, Alt-Cursor Down
  630.             These keystroke are useful with mask editing only. They
  631.             move up and down to  the previous or next area, if any.
  632.             The position of the cursor in every area is remembered.
  633.             Here again, precise  behaviour is determined by the ap-
  634.             plication's settings.
  635.  
  636.  
  637.  
  638.  
  639.  
  640.  
  641.  
  642.  
  643.  
  644.  
  645.  
  646.  
  647.  
  648.  
  649.  
  650.  
  651.  
  652.  
  653.  
  654.  
  655.  
  656.  
  657.  
  658.       IntuiSup r1.15           Page 10            User Manual
  659.  
  660.  
  661.